Developer Documentation
PATH  WebObjects 4.0 Documentation > WebObjects Tools and Techniques

Table of Contents Previous Section

Customizing Your Application With WebAssistant

The WebAssistant allows you to customize each page of your application. You can specify:

To activate the WebAssistant, click Customize in the Direct to Web header. A Java applet window appears showing the WebAssistant.

When you have activated the WebAssistant in your browser, a frame appears at the bottom of each page in your application in the browser (assuming it supports Java applets), containing a "Show WebAssistant" button and a status field. To bring the WebAssistant to the front, click the Show WebAssistant button (rather than clicking Customize again).

Running WebAssistant With appletviewer

If you browser is incapable of running applets (such as WebAssistant), or if you want to run WebAssistant in a different machine from your browser, you can launch WebAssistant using the Java program appletviewer. To do this:

  1. Launch your application with the command-line option D2WLiveAssistantEnabled set to YES.

  2. In the console output look for a line similar to the following:
    Jul 23 10:29:48 D2WTest[527] Server-side Live Assistant launch line: 
    appletviewer http://localhost:8888/cgi-
    bin/WebObjects/D2WTest.woa/wa/D2WActions/openLiveAssistant
    

  3. Open a shell such as provided by the Terminal application on Mac OS X Server systems or the Bourne Shell on Yellow Box for Windows systems.

  4. Copy the string from "appletviewer" to "openLiveAssistant" to the shell and press Return (or Enter).

    If the port number is -1, look in the console output for the actual port number of the application and substitute that.

When you complete this procedure, WebAssistant launches and is connected to your application. If you stop and restart the Direct to Web application, the WebAssistant will re-connect to it on the same port.

A standalone WebAssistant has exactly the same functionality as one launched inside your browser. However, if the browser you are using is not Java-enabled, your pages are not automatically refreshed after you click Update. You must either click your browser's "reload" or "refresh" button or (when you are picking a new type of page, such as a MasterDetails page instead of a ListPage), you will have to re-navigate to the same page.

Table of Contents Next Section